
function App() {
  const title = "学习reeact列表渲染语句";
  const arr1 = [
    <h3 key='a'>学习Vue</h3>,
    <h3 key='b'>学习react</h3>,
    <h3 key='c'>学习uniapp</h3>,
  ];

  const arr2 = ["html", "css", "js", "vue", "react"]

  return (
    <div className="content">
      <h1>{title}</h1>
      你好reeact
      <p>1，数组里面可以有html会自动展开</p>
      {arr1}

      <p>2，数组 通过js map 映射dom</p>
      {
        arr2.map((item, index) =>
          <h5 key={index}>学习：{item}</h5>
        )
      }
    </div >
  );
}
export default App;

